package com.tarena.lbs.business.pojo.po;

import com.baomidou.mybatisplus.annotation.*;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("lbs_business")
public class BusinessPO implements Serializable {

    // 主键ID，类型为自动增长
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

     // 映射字段business_name
    @NotBlank(message = "商家名称不能为空")
    private String businessName;

    // 映射字段industry_type
    @NotNull(message = "商家行业类型不能为空")
    private Integer industryType;

    // 映射字段business_head_name
    @NotBlank(message = "负责人姓名不能为空")
    private String businessHeadName;

    // 映射字段business_head_phone
    @NotBlank(message = "负责人电话不能为空")
    private String businessHeadPhone;

    // 映射字段company_address
    @NotBlank(message = "公司地址不能为空")
    private String companyAddress;

    // 映射字段business_license
    private String businessLicense;

    // 映射字段business_introduction
    @Size(max = 255,message="商家简介不能超过255字")
    private String businessIntroduction;

    // 映射字段entry_time
    @TableField(fill = FieldFill.INSERT)
    private Date entryTime;

    // 映射字段business_status
    private Integer businessStatus;

    // 映射字段audit_remarks
    private String auditRemarks;

    // 映射字段business_logo
    private String businessLogo;
}
